#include<iostream>
#include<vector>
#include<string>
#include<algorithms>

using namespace std;

class TheEncryptionDivTwo
{
public:
	string encrypt(string message)
	{
		char letter[26];
		string cipher;
		for(int i=0; i<26; i++)
		{
			letter[i] = '0';
		}
		for(int i=0, j=0; i<message.size()&&j<26; i++)
		{
			if(letter[message[i] - 'a'] == '0')
			{
				letter[message[i] - 'a'] = 'a' + j;
				j++;
			}
		}
		for(int i=0; i< message.size(); i++)
		{
			cipher += letter[message[i] - 'a'];
		}
		return cipher;
	}
};